#include <iostream>
#include <memory>
#include "Log.hpp"
#include "UdpClient.hpp"
int main(int argv, const char *argc[])
{

    if (argv != 3)
    {
        std::cout << "place using: udpclient -server_ip -server_port" << std::endl;
        exit(ARGV_ERROR);
    }

    std::string ip = argc[1];
    u_int16_t port = std::stoi(argc[2]);

    EnableFile();
    std::unique_ptr<udpclient> udpcptr = std::make_unique<udpclient>(port, ip);

    udpcptr->InitClient();
    udpcptr->Start();

    return 0;
}